import request from '@/utils/request'

// 查询养护过程列表
export function listMaintainRecord(query) {
  return request({
    url: '/equipment/maintainRecord/list',
    method: 'get',
    params: query
  })
}
// 查询养护过程详细
export function getProcess(id) {
  return request({
    url: '/equipment/process/' + id,
    method: 'get'
  })
}
// 删除养护过程
export function delProcess(id) {
  return request({
    url: '/equipment/maintainRecord/' + id,
    method: 'delete'
  })
}
// 修改养护过程
export function updateProcess(data) {
  return request({
    url: '/equipment/process',
    method: 'put',
    data: data
  })
}
// 查询养护过程详细
export function getMaintainRecord(id) {
  return request({
    url: '/equipment/maintainRecord/' + id,
    method: 'get'
  })
}

